class CreateStudents < ActiveRecord::Migration
  def self.up
    create_table :students do |t|
      t.column :id, :int
      t.column :account, :string
      t.column :stuid, :string
      t.column :hashed_password, :string
      t.column :salt, :string
      t.column :email, :string
      t.column :sex, :string
      t.column :tel, :string
      t.column :MSN, :string
    end
  end

  def self.down
    drop_table :students
  end
end
